<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="ISO-8859-1"%>
 <%@taglib prefix="shiro"  uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
    <h4>list massage</h4>
    <!--<shiro:principal></shiro:principal>可以获得登陆用户的名字  -->
    
    <shiro:hasRole name="admin">
    <a href="shiro/admin">admin page</a>
    </shiro:hasRole>
    <br>
    <shiro:hasRole name="user">
    <a href="shiro/user">user page</a>
    </shiro:hasRole>
    <br>
    <a href="shiro/testShiroAnnotation">Test ShiroAnnotation</a>
    <br><br>
	<a href="shiro/logout">logout</a>
</body>
</html>